package Base64Util

import (
	"encoding/base64"
)

func EncodeMessage(message []byte)string{
	encodeString := base64.StdEncoding.EncodeToString(message)
	return encodeString
}

func DecodeMessage(encodeString string)[]byte{
	decodeBytes, err := base64.StdEncoding.DecodeString(encodeString)
	if err != nil {
		return nil
	}
	return decodeBytes
}


